.class Lcom/example/m6wmr/WaimaiActivity$OnScrollListenerImple;
.super Ljava/lang/Object;
.source "WaimaiActivity.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/WaimaiActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "OnScrollListenerImple"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/WaimaiActivity;


# direct methods
.method private constructor <init>(Lcom/example/m6wmr/WaimaiActivity;)V
    .locals 0

    .prologue
    .line 244
    iput-object p1, p0, Lcom/example/m6wmr/WaimaiActivity$OnScrollListenerImple;->this$0:Lcom/example/m6wmr/WaimaiActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 6
    .param p1, "listView"    # Landroid/widget/AbsListView;
    .param p2, "firstVisibleItem"    # I
    .param p3, "visibleItemCount"    # I
    .param p4, "totalItemCount"    # I

    .prologue
    .line 247
    add-int v2, p2, p3

    .line 248
    .local v2, "lastItem":I
    if-ne v2, p4, :cond_0

    .line 252
    if-eqz p1, :cond_0

    .line 254
    :try_start_0
    invoke-virtual {p1}, Landroid/widget/AbsListView;->getChildCount()I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    invoke-virtual {p1, v4}, Landroid/widget/AbsListView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    .line 255
    .local v3, "lastItemView":Landroid/view/View;
    invoke-virtual {p1}, Landroid/widget/AbsListView;->getBottom()I

    move-result v4

    invoke-virtual {v3}, Landroid/view/View;->getBottom()I

    move-result v5

    if-ne v4, v5, :cond_0

    .line 256
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity$OnScrollListenerImple;->this$0:Lcom/example/m6wmr/WaimaiActivity;

    # getter for: Lcom/example/m6wmr/WaimaiActivity;->is_showpage:Z
    invoke-static {v4}, Lcom/example/m6wmr/WaimaiActivity;->access$0(Lcom/example/m6wmr/WaimaiActivity;)Z

    move-result v0

    .line 257
    .local v0, "checkpage":Z
    if-nez v0, :cond_0

    .line 258
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity$OnScrollListenerImple;->this$0:Lcom/example/m6wmr/WaimaiActivity;

    # getter for: Lcom/example/m6wmr/WaimaiActivity;->page:I
    invoke-static {v4}, Lcom/example/m6wmr/WaimaiActivity;->access$1(Lcom/example/m6wmr/WaimaiActivity;)I

    move-result v5

    add-int/lit8 v5, v5, 0x1

    invoke-static {v4, v5}, Lcom/example/m6wmr/WaimaiActivity;->access$2(Lcom/example/m6wmr/WaimaiActivity;I)V

    .line 259
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity$OnScrollListenerImple;->this$0:Lcom/example/m6wmr/WaimaiActivity;

    const/4 v5, 0x1

    invoke-static {v4, v5}, Lcom/example/m6wmr/WaimaiActivity;->access$3(Lcom/example/m6wmr/WaimaiActivity;Z)V

    .line 260
    const-string v4, "waimaiACtivity"

    const-string v5, "\u6ed1\u52a8\u5230\u6700\u4e0b\u9762"

    invoke-static {v4, v5}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 261
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity$OnScrollListenerImple;->this$0:Lcom/example/m6wmr/WaimaiActivity;

    invoke-virtual {v4}, Lcom/example/m6wmr/WaimaiActivity;->getShopSource()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 271
    .end local v0    # "checkpage":Z
    .end local v3    # "lastItemView":Landroid/view/View;
    :cond_0
    :goto_0
    return-void

    .line 267
    :catch_0
    move-exception v1

    .line 268
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 0
    .param p1, "listview"    # Landroid/widget/AbsListView;
    .param p2, "scrollState"    # I

    .prologue
    .line 276
    return-void
.end method
